package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 仓库物料 数量统计表
 * </p>
 *
 * @author LX
 * @since 2018-09-09
 */
@TableName("erp_warehouse")
public class ErpWarehouse extends Model<ErpWarehouse> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 仓库ID
     */
    @TableField("warehouse_id")
    private Integer warehouseId;
    /**
     * 客户ID
     */
    @TableField("customer_id")
    private Integer customerId;
    /**
     * 物料品名
     */
    @TableField("materiel_name")
    private  String materielName;
 /**
     * 物料规格
     */
    @TableField("materiel_Specifications")
    private  String materielSpecifications;
 /**
     * 物料型号
     */
    @TableField("materiel_model")
    private  String materielModel;
 /**
     * 物料产地
     */
    @TableField("materiel_place")
    private  String materielPlace;
 /**
     * 物料状态
     */
    @TableField("materiel_state")
    private  String materielState;
    /**
     * 物料生产编号
     */
    @TableField("materiel_production_id")
    private  String  materielProductionId;

 /**
     * 物料单位
     */
    @TableField("materiel_unit")
    private  String materielUnit;
 /**
     * 物料品牌
     */
    @TableField("materiel_brand")
    private  String materielBrand;



    /**
     * 物料 期初数量
     */
    @TableField("materiel_number")
    private Integer materielNumber;
    /**
     * 物料被占用的数量
     */
    @TableField("materiel_occupy_number")
    private Integer materielOccupyNumber;
    /**
     * 预警值
     */
    @TableField("materiel_warn_amount")
    private Integer materielWarnAmount;
    /**
     * 含税单价
     */
    @TableField("materiel_tax")
    private Double materielTax;
    /**
     * 未税单价
     */
    @TableField("materiel_notax")
    private Double materielNotax;
    /**
     * 物料id
     */
    @TableField("materiel_id")
    private Integer materielId;
    //总价
    private Double allPrice;
    //发票类型
    @TableField("invoice_type")
    private String invoiceType;

    public String getMaterielProductionId() {
        return materielProductionId;
    }

    public void setMaterielProductionId(String materielProductionId) {
        this.materielProductionId = materielProductionId;
    }

    public String getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(String invoiceType) {
        this.invoiceType = invoiceType;
    }

    public Double getAllPrice() {
        return allPrice;
    }

    public void setAllPrice(Double allPrice) {
        this.allPrice = allPrice;
    }

    private transient Integer outMatNum;//出库总数

    private transient Integer inMatNum;//入库总数

    private transient Integer matNum;//时间段前总数
    private transient String wuLiaoName;//时间段前总数

    private transient String custName;//客户名称

    private transient ErpMaterielFlowMateriel flowMateriel;//物料

    private transient String  wareName;//仓库id
    public String getMaterielName() {
        return materielName;
    }

    public String getWuLiaoName() {
        return wuLiaoName;
    }

    public void setWuLiaoName(String wuLiaoName) {
        this.wuLiaoName = wuLiaoName;
    }

    public void setMaterielName(String materielName) {
        this.materielName = materielName;
    }

    public String getMaterielSpecifications() {
        return materielSpecifications;
    }

    public void setMaterielSpecifications(String materielSpecifications) {
        this.materielSpecifications = materielSpecifications;
    }

    public String getMaterielModel() {
        return materielModel;
    }

    public void setMaterielModel(String materielModel) {
        this.materielModel = materielModel;
    }

    public String getMaterielPlace() {
        return materielPlace;
    }

    public void setMaterielPlace(String materielPlace) {
        this.materielPlace = materielPlace;
    }

    public String getMaterielState() {
        return materielState;
    }

    public void setMaterielState(String materielState) {
        this.materielState = materielState;
    }

    public String getMaterielUnit() {
        return materielUnit;
    }

    public void setMaterielUnit(String materielUnit) {
        this.materielUnit = materielUnit;
    }

    public String getMaterielBrand() {
        return materielBrand;
    }

    public void setMaterielBrand(String materielBrand) {
        this.materielBrand = materielBrand;
    }
    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

    public String getWareName() {
        return wareName;
    }

    public void setWareName(String wareName) {
        this.wareName = wareName;
    }

    public Integer getMatNum() {
        return matNum;
    }

    public void setMatNum(Integer matNum) {
        this.matNum = matNum;
    }

    public Integer getOutMatNum() {
        return outMatNum;
    }

    public void setOutMatNum(Integer outMatNum) {
        this.outMatNum = outMatNum;
    }
    public Integer getInMatNum() {
        return inMatNum;
    }

    public void setInMatNum(Integer inMatNum) {
        this.inMatNum = inMatNum;
    }



    public ErpMaterielFlowMateriel getFlowMateriel() {
        return flowMateriel;
    }

    public void setFlowMateriel(ErpMaterielFlowMateriel flowMateriel) {
        this.flowMateriel = flowMateriel;
    }

    public Integer getMaterielId() {
        return materielId;
    }

    public void setMaterielId(Integer materielId) {
        this.materielId = materielId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public Integer getMaterielNumber() {
        return materielNumber;
    }

    public void setMaterielNumber(Integer materielNumber) {
        this.materielNumber = materielNumber;
    }

    public Integer getMaterielOccupyNumber() {
        return materielOccupyNumber;
    }

    public void setMaterielOccupyNumber(Integer materielOccupyNumber) {
        this.materielOccupyNumber = materielOccupyNumber;
    }

    public Integer getMaterielWarnAmount() {
        return materielWarnAmount;
    }

    public void setMaterielWarnAmount(Integer materielWarnAmount) {
        this.materielWarnAmount = materielWarnAmount;
    }

    public Double getMaterielTax() {
        return materielTax;
    }

    public void setMaterielTax(Double materielTax) {
        this.materielTax = materielTax;
    }

    public Double getMaterielNotax() {
        return materielNotax;
    }

    public void setMaterielNotax(Double materielNotax) {
        this.materielNotax = materielNotax;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
